/**
 * Created by Administrator on 2017/3/22 0022.
 */
var Page11={
    create:function () {
        var page={};
        page.ui=new PIXI.DisplayObjectContainer();

        var bg=new PIXI.Graphics();
        bg.beginFill(0x0,1);
        bg.drawRect(0,0,pixiStageW,pixiStageH);
        bg.endFill();
        page.ui.addChild(bg);

        var glow=new PIXI.Sprite(resource['assets/images/p2_glowLine.png'].texture);
        glow.anchor.set(0.5);
        glow.x=568;
        glow.y=568-150;
        page.ui.addChild(glow);
        TweenMax.to(glow,15,{rotation:Math.PI*2,ease:Linear.easeNone,repeat:-1});

        var i0=new PIXI.Sprite(resource['assets/images/p12_logo.png'].texture);
        i0.anchor.set(0.5);
        i0.x=571;
        i0.y=358;
        page.ui.addChild(i0);

        var tip1=new PIXI.Sprite(resource['assets/images/tip1.png'].texture);
        tip1.anchor.set(0.5);
        tip1.x=1090;
        tip1.y=458;
        page.ui.addChild(tip1);



        page.In=function()
        {
            bg.alpha=0;
            TweenMax.to(bg,1,{delay:0,alpha:1});

            // tip1.alpha=0
            // TweenMax.to(tip1,{delay:0,alpha:1});

            i0.scale.x=i0.scale.y=0;
            TweenMax.to(i0.scale,1.2,{delay:1.0,x:1,y:1,ease:Back.easeOut});

            glow.alpha=0;
            TweenMax.to(glow,1.2,{delay:1.0,alpha:1,ease:Cubic.easeInOut});

            //
            // t1.alpha=0;
            // t1.y=pixiStageH/2+50;
            // TweenMax.to(t1,1.2,{delay:3,y:pixiStageH/2,alpha:1,ease:Cubic.easeInOut});
            //
            // TweenMax.to(_mask,3,{delay:4.5,x:244});

            // setTimeout(function()
            // {
            //     var arr=[1,0]
            //     var event = new CustomEvent("Game_PageIn",{'detail':arr});
            //     document.dispatchEvent(event);
            // },9000);
        }


        return page;
    }
}
